home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS in a Box 5
/
BBS in a Box -Volume V (BBS in a Box) (April 1992).iso
/
Files
/
MacII
/
H-L
/
JS 5.0b9.cpt
/
JuliaSet.doc
next >
Wrap
Text File
|
1988-04-05
|
2KB
|
55 lines
This Fractal geometry program draws Julia sets and pools of
attraction (v 5.0b6).
The program only runs on a Mac II. It directly addresses the
MC68881 FPU and draws in 16 colors (greys). Make sure
that you have that many colors turned on.
With version 5.0b6 the program now allows entry of the seed
values and depth limit. The seed values are specified in 8
digits to the right of the decimal point, zero to the left.
Depth limit is the count of how many iterrations before
the program will give up on a pixel. The edits on these fields
could be better, so treat your data entry with care.
The program is freeware, so pass it on as much as you
want. It takes about 10 minutes to draw the Mac II screen.
To stop it, hold the mouse button down until the next line is
drawn. The picture will be drawn on whichever monitor is the
main screen. That monitor should have 16 colors (or greys).
The main calculation loop has eight floating-point math
instructions and five floating-point control (FMOVE, FCMP, etc)
instructions. The limit is set to 256 itterations per pixel.
So that means that "yellow" pixels in the pool area execute
about 2048 floating-point math instructions. There are about
430 rows in the drawing and I estimate that about 300 pixels per
line are in the yellow "pool" area. As you work your way back up
the strands, less itterations are required. For the yellow "pool"
pixels I estimate that there are at least 250 million floating-
point instructions executed. (8 * 256 * 430 * 300).
With version 5.0b9 I have fixed the mouse-down detection so that it
now uses _GetNextEvent instead of _MouseDown. This allows FKEY's to
capture the screen. Also changed is the X and Y coordinates may
now be negative. I have found a couple of additional interesting
x/y pairs:
x -1.254024 y 0.046252
x -0.19920 y 1.01480
If you have favorites, please send them to me at the address below.
If you have comments or suggestions for improvements you can
reach me at any of the following:
GEnie: RAYSANDERS
Compuserve: 70277,3233
Ray Sanders
Green Grass Software, Inc.
P.O. Box 570
Dunedin, Florida 34697-0570
(813) 796-2272